package com.leo.bean;

/**
 * @ClassName Counter
 * @Description
 * @Author wangss
 * @date 2021.07.14 20:44
 * @Version 1.0
 */
public class Counter {

    private int idx;

    public Counter(int idx) {
        this.idx = idx;
    }

    public int getIdx() {
        return idx;
    }

    public void setIdx(int idx) {
        this.idx = idx;
    }

    public int incr() {
        this.idx = ++idx;
        return idx;
    }
}
